package com.lottery.service;

import com.lottery.dao.RegionDao;
import com.lottery.pojo.TableRegions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RegionService {

    @Autowired
    private RegionDao regionDao;

    public List<TableRegions> getRegions() {
        return regionDao.getRegions();
    }

    public void updateRegion(TableRegions tableRegions) {
        regionDao.updateRegion(tableRegions);
    }

    public void updateRegionLimit(TableRegions region) {
        regionDao.updateRegionLimit(region);
    }
}
